powered by
Random values simulation from the multivariate Cauchy distribution.
rmvcauchy(n, mu, sigma)
A matrix with the simulated data.
The sample size, a numerical value.
The mean vector in \(R^d\).
The scatter matrix in \(R^d\).
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
dmvcauchy
x <- as.matrix(iris[, 1:4]) mod <- mvcauchy.mle(x) m <- mod$location s <- mod$scatter y <- rmvcauchy(1000, m, s) mvcauchy.mle(y)
Run the code above in your browser using DataLab